<%@ Page Language="c#" Inherits="PHSRAG.Insight21.PODetails" CodeFile="PODetails.aspx.cs" %>

<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>PO Details</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form method="post" id="PODetailsForm" runat="server">
        <table class="Container" width="100%">
            <tr>
                <td>
                    <table class="Header" width="100%" border="0">
                        <tr>
                            <td>
                                <cc1:Header ID="insightHeader" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:PurchasingSubNavigation ID="purchasingSubModuleNavigation" runat="server"></cc1:PurchasingSubNavigation>
                                <cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server"></cc1:AgreementsSubNavigation>
                                <cc1:AgreementDetailsSubNavigation ID="agreementDetailsSubNavigation" runat="server">
                                </cc1:AgreementDetailsSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table class="Invisible" id="dynamicTable" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td align="left" class="PageName">
                                PO Details</td>
                            <td align="center">
                                <cc1:RefreshDates ID="refreshDates" runat="server" SalaryAsOfDateVisible="false"
                                    GLAsOfDateVisible="false" POAPAsOfDateVisible="True" Visible="True"></cc1:RefreshDates>
                            </td>
                            <td align="right">
                                <cc1:InsightDownloadBar ID="reportDownload" runat="server"></cc1:InsightDownloadBar>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <br />
                    <table cellspacing="0" width="100%" cellpadding="0">
                        <tr>
                            <td>
                                <table class="DataTitle" width="100%" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            &nbsp;Header | As of
                                            <asp:Label ID="headerAsOfDate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DataGrid ID="headerGrid" runat="server" CssClass="DataGrid" AutoGenerateColumns="False"
                                                AllowCustomPaging="True" Width="100%" CellSpacing="0">
                                                <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                <Columns>
                                                    <asp:BoundColumn HeaderText="Unit" DataField="BusinessUnit" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Order #" DataField="OrderNumber" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Vendor Name" DataField="VendorName" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Requisition #" DataField="RequisitionNumber" ReadOnly="True">
                                                    </asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Requestor" DataField="Requestor" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="ShipTo" DataField="ShipTo" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Order Date" DataField="OrderDate" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="OrderStatus" DataField="OrderStatus" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Receipt" DataField="ReceiptStatus" ReadOnly="True"></asp:BoundColumn>
                                                    <asp:BoundColumn HeaderText="Backorder Status" DataField="BackorderStatus" ReadOnly="True">
                                                    </asp:BoundColumn>
                                                </Columns>
                                            </asp:DataGrid>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table class="DataTitle" width="100%" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            &nbsp;Line | As of
                                            <asp:Label ID="lineAsOfDate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <cc2:ExpandingDataGrid ID="expandingDataGrid" runat="server" ExpandText="<img border=no src=../images/expandButton.gif>"
                                                CollapseText="<img border=no src=../images/collapseButton.gif>" KeyColumnHeaderText="ID"
                                                ShowFooter="True" AutoGenerateColumns="False" CssClass="DataGrid" Width="100%">
                                                <FooterStyle CssClass="DataGridFooter"></FooterStyle>
                                                <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                                <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                                <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                                <Columns>
                                                    <asp:BoundColumn DataField="ID" ReadOnly="True" Visible="False" HeaderText="ID"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="LineNumber" ReadOnly="True" HeaderText="Line#/ Voucher#">
                                                    </asp:BoundColumn>
                                                    <asp:BoundColumn DataField="Description" ReadOnly="True" HeaderText="Description"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="Category" ReadOnly="True" HeaderText="Category"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="AccountNumber" ReadOnly="True" HeaderText="Account#"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="FundNumber" ReadOnly="True" HeaderText="Fund#"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="Quantity" ReadOnly="True" HeaderText="Quantity"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="UOM" ReadOnly="True" HeaderText="UOM"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="OriginalOrderAmount" ReadOnly="True" itemstyle-cssclass="currency"
                                                        HeaderText="Original Order Amount"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="ExpensedToDate" ReadOnly="True" itemstyle-cssclass="currency"
                                                        HeaderText="Original Order  Amt.  Paid to Date"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="BalanceRemaining" ReadOnly="True" itemstyle-cssclass="currency"
                                                        HeaderText="Balance	Remaining"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="CurrentInvoiceAmt" ReadOnly="True" itemstyle-cssclass="currency"
                                                        HeaderText="Current Invoice Amt"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="InvoiceNumber" ReadOnly="True" HeaderText="Invoice#"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="InvoiceDate" ReadOnly="True" HeaderText="Invoice Date"
                                                        dataformatstring="{0:MM/dd/yyyy}"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="PaidDate" ReadOnly="True" HeaderText="Paid Date" dataformatstring="{0:MM/dd/yyyy}">
                                                    </asp:BoundColumn>
                                                </Columns>
                                            </cc2:ExpandingDataGrid>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
